Skip to content

update

Request

Security
ApiKeyAuth
Path
idstringrequired
Example:00000000-0000-0000-0000-000000000001
Bodyapplication/json
dataobjectrequired
curl -i -X PATCH \
  https://llm-api.treasuredata.com/api/image_generators/00000000-0000-0000-0000-000000000001 \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "data": {
      "type": "imageGenerators",
      "id": "00000000-0000-0000-0000-000000000001",
      "attributes": {
        "name": "Updated Name"
      }
    }
  }'

Responses

updates the image_generator

Bodyapplication/vnd.api+json
dataobjectrequired
Response
{ "data": { "id": "00000000-0000-0000-0000-000000000001", "type": "imageGenerators", "links": { … }, "attributes": { … } } }